import Loadable from 'react-loadable';  //第三方库
// import Loadable from '../utils/loadable';  //自己实现的路由懒加载
import Loading from "../components/Loading";   //这里是加载页面
//在这里进行统一的导出,导出之前进行路由懒加载的处理

const Dashboard = Loadable({
    loader: () => import('./DarshBoard'),
    loading: Loading
})
const Login = Loadable({
    loader: () => import('./Login'),
    loading: Loading
})

const NotFound  = Loadable({
    loader: () => import('./NotFound'),
    loading: Loading
})
const ArticleList = Loadable({
    loader: () => import('./Article/ArticleList'),
    loading: Loading
})
const ArticleEdit = Loadable({
    loader: () => import('./Article/ArticleEdit'),
    loading: Loading
})
const Settings = Loadable({
    loader: () => import('./Settings'),
    loading: Loading
})

const Notifications = Loadable({
    loader: () => import('./Notifications'),
    loading: Loading
})
const NoAuth = Loadable({
    loader: () => import('./NoAuth'),
    loading: Loading
})

const Profile = Loadable({
    loader: () => import('./Profile'),
    loading: Loading
})

export {
    Dashboard,
    Login,
    NotFound,
    Settings,
    ArticleList,
    ArticleEdit,
    Notifications,
    NoAuth,
    Profile
}